import os

import pytest

from Tools import log, send_mail
from base.base import time_c

if __name__ == '__main__':
    pytest.main([r'G:\pycharm\code\my_code\kaoshi20251110\case\test_baidu_case.py','-s',f'--html=./html/case{str(time_c())}.html','--alluredir=report'])
    os.system('allure generate report -o xiaoma --clean')
    log()
    send_mail([fr'G:\pycharm\code\my_code\kaoshi20251110\html\case{str(time_c())}.html',fr'G:\pycharm\code\my_code\kaoshi20251110\log\baiduwebtestlog{str(time_c())}.txt'])